import Vue from 'vue'
import Router from 'vue-router'
import FakeMain from '@/components/FakeMain'
import HomeGoods from '@/components/goods/Goods'
import HomeRatings from '@/components/ratings/Ratings'
import HomeSeller from '@/components/seller/Seller'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'FakeMain',
      component: FakeMain,
      children: [
        {
          path: '/goods',
          component: HomeRatings
        },
        {
          path: '/ratings',
          component: HomeGoods
        },
        {
          path: '/seller',
          component: HomeSeller
        }
      ]
    }
  ]
})
